package com.umakr.ax.app.web;

import com.umakr.ax.common.service.ShowFabulousService;
import com.umakr.ax.core.base.AbstractController;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 * 秀点赞  前端控制器
 * </p>
 *
 * @author Umakr-Code-Generator
 * @since 2017-12-30
 */
@Controller
@RequestMapping("/api/showFabulous")
public class ShowFabulousAppController extends AbstractController {

	@Autowired
	ShowFabulousService showFabulousService;

	/**
	 * @author @author 唐腾飞
	 * @param modelMap
	 * @param userId
	 * @param rsId
	 * @param showId
	 * @param type
	 * @return
	 */
	@ApiOperation(value = "电台秀点赞/取消点赞")
	@GetMapping("/fabulous")
	@ResponseBody
	public Object fabulous(ModelMap modelMap, Long userId,Long rsId,Long showId,Integer type) {
		return setSuccessModelMap(modelMap,showFabulousService.fabulous(userId,rsId,showId,type));
	}

}